<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
String id=request.getParameter("id");
switch(id){
case "1":
case "2": 
case "3": 
case "4":response.sendRedirect("newstypelist.jsp?tid="+id);
break;
default:response.sendRedirect("https://www.baidu.com");
}
%>
</body>
</html>